.class public Lcom/inmobi/commons/internal/ThinICEConfig;
.super Ljava/lang/Object;
.source "ThinICEConfig.java"


# static fields
.field public static final CELL_OP_FLAGS_DEFAULT:I = 0x0

.field public static final ENABLED_DEFAULT:Z = true

.field public static END_POINT_DEFAULT:Ljava/lang/String; = null

.field public static MAX_RETRY_DEFAULT:J = 0x0L

.field public static RETRY_INTERVAL:J = 0x0L

.field public static final SAMPLE_CELL_CONNECTED_WIFI_ENABLED_DEFAULT:Z = true

.field public static final SAMPLE_CELL_ENABLED_DEFAULT:Z = true

.field public static final SAMPLE_CELL_LOCATION_ENABLED_DEFAULT:Z = true

.field public static final SAMPLE_CELL_OPERATOR_ENABLED_DEFAULT:Z = true

.field public static final SAMPLE_CELL_VISIBLE_WIFI_ENABLED_DEFAULT:Z = true

.field public static final SAMPLE_HISTORY_SIZE_DEFAULT:I = 0x32

.field public static final SAMPLE_INTERVAL_DEFAULT:J = 0x3cL

.field public static final STOP_REQUEST_TIMEOUT_DEFAULT:J = 0x3L

.field public static final WIFI_FLAGS_DEFAULT:I


# instance fields
.field a:J

.field b:J

.field c:J

.field d:J

.field e:I

.field f:I

.field g:I

.field h:Z

.field i:Z

.field j:Z

.field k:Z

.field l:Z

.field m:Z

.field n:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    const-wide/16 v1, 0x3

    .line 20
    const-string v0, "https://et.w.inmobi.com/user/e.asm"

    sput-object v0, Lcom/inmobi/commons/internal/ThinICEConfig;->END_POINT_DEFAULT:Ljava/lang/String;

    .line 21
    sput-wide v1, Lcom/inmobi/commons/internal/ThinICEConfig;->MAX_RETRY_DEFAULT:J

    .line 22
    sput-wide v1, Lcom/inmobi/commons/internal/ThinICEConfig;->RETRY_INTERVAL:J

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 79
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    const-wide/16 v0, 0x3c

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->a:J

    const-wide/16 v0, 0x3

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->b:J

    sget-wide v0, Lcom/inmobi/commons/internal/ThinICEConfig;->RETRY_INTERVAL:J

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->c:J

    sget-wide v0, Lcom/inmobi/commons/internal/ThinICEConfig;->MAX_RETRY_DEFAULT:J

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->d:J

    .line 26
    const/16 v0, 0x32

    iput v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->e:I

    iput v3, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->f:I

    iput v3, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->g:I

    .line 52
    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->h:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->i:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->j:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->k:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->l:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->m:Z

    .line 77
    sget-object v0, Lcom/inmobi/commons/internal/ThinICEConfig;->END_POINT_DEFAULT:Ljava/lang/String;

    iput-object v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->n:Ljava/lang/String;

    .line 80
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {p0, v0}, Lcom/inmobi/commons/internal/ThinICEConfig;->a(Lorg/json/JSONObject;)V

    .line 81
    return-void
.end method

.method public constructor <init>(Lorg/json/JSONObject;)V
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 83
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    const-wide/16 v0, 0x3c

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->a:J

    const-wide/16 v0, 0x3

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->b:J

    sget-wide v0, Lcom/inmobi/commons/internal/ThinICEConfig;->RETRY_INTERVAL:J

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->c:J

    sget-wide v0, Lcom/inmobi/commons/internal/ThinICEConfig;->MAX_RETRY_DEFAULT:J

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->d:J

    .line 26
    const/16 v0, 0x32

    iput v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->e:I

    iput v3, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->f:I

    iput v3, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->g:I

    .line 52
    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->h:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->i:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->j:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->k:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->l:Z

    iput-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->m:Z

    .line 77
    sget-object v0, Lcom/inmobi/commons/internal/ThinICEConfig;->END_POINT_DEFAULT:Ljava/lang/String;

    iput-object v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->n:Ljava/lang/String;

    .line 84
    invoke-virtual {p0, p1}, Lcom/inmobi/commons/internal/ThinICEConfig;->a(Lorg/json/JSONObject;)V

    .line 85
    return-void
.end method


# virtual methods
.method a(Lorg/json/JSONObject;)V
    .locals 8
    .parameter

    .prologue
    .line 88
    const-string v1, "si"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->a:J

    const-wide/16 v4, 0x1

    const-wide v6, 0x7fffffffffffffffL

    move-object v0, p1

    invoke-static/range {v0 .. v7}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getLongFromJSON(Lorg/json/JSONObject;Ljava/lang/String;JJJ)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->a:J

    .line 89
    const-string v1, "srt"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->b:J

    const-wide/16 v4, 0x1

    const-wide v6, 0x7fffffffffffffffL

    move-object v0, p1

    invoke-static/range {v0 .. v7}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getLongFromJSON(Lorg/json/JSONObject;Ljava/lang/String;JJJ)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->b:J

    .line 90
    const-string v0, "shs"

    iget v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->e:I

    const/4 v2, 0x1

    const v3, 0x7fffffff

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->e:I

    .line 91
    const-string v0, "shs"

    iget v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->f:I

    const/4 v2, 0x0

    const/16 v3, 0xf

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->f:I

    .line 92
    const-string v0, "cof"

    iget v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->g:I

    const/4 v2, 0x0

    const/16 v3, 0xf

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->g:I

    .line 94
    const-string v0, "e"

    iget-boolean v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->h:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->h:Z

    .line 95
    const-string v0, "sccw"

    iget-boolean v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->k:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->k:Z

    .line 96
    const-string v0, "sced"

    iget-boolean v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->j:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->j:Z

    .line 97
    const-string v0, "scle"

    iget-boolean v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->m:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->m:Z

    .line 98
    const-string v0, "scoe"

    iget-boolean v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->i:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->i:Z

    .line 99
    const-string v0, "scvw"

    iget-boolean v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->l:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->l:Z

    .line 101
    const-string v0, "ep"

    iget-object v1, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->n:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getStringFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->n:Ljava/lang/String;

    .line 102
    const-string v1, "mr"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->d:J

    const-wide/16 v4, 0x0

    const-wide v6, 0x7fffffffffffffffL

    move-object v0, p1

    invoke-static/range {v0 .. v7}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getLongFromJSON(Lorg/json/JSONObject;Ljava/lang/String;JJJ)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->d:J

    .line 103
    const-string v1, "ri"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->c:J

    const-wide/16 v4, 0x1

    const-wide v6, 0x7fffffffffffffffL

    move-object v0, p1

    invoke-static/range {v0 .. v7}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getLongFromJSON(Lorg/json/JSONObject;Ljava/lang/String;JJJ)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->c:J

    .line 104
    return-void
.end method

.method public getCellOpsFlag()I
    .locals 1

    .prologue
    .line 48
    iget v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->g:I

    return v0
.end method

.method public getMaxRetry()J
    .locals 2

    .prologue
    .line 39
    iget-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->d:J

    return-wide v0
.end method

.method public getRetryInterval()J
    .locals 2

    .prologue
    .line 36
    iget-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->c:J

    return-wide v0
.end method

.method public getSampleHistorySize()I
    .locals 1

    .prologue
    .line 42
    iget v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->e:I

    return v0
.end method

.method public getSampleInterval()J
    .locals 2

    .prologue
    .line 30
    iget-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->a:J

    return-wide v0
.end method

.method public getStopRequestTimeout()J
    .locals 2

    .prologue
    .line 33
    iget-wide v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->b:J

    return-wide v0
.end method

.method public getWifiFlags()I
    .locals 1

    .prologue
    .line 45
    iget v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->f:I

    return v0
.end method

.method public isCellEnabled()Z
    .locals 1

    .prologue
    .line 65
    iget-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->j:Z

    return v0
.end method

.method public isConnectedWifiEnabled()Z
    .locals 1

    .prologue
    .line 68
    iget-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->k:Z

    return v0
.end method

.method public isEnabled()Z
    .locals 1

    .prologue
    .line 59
    iget-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->h:Z

    return v0
.end method

.method public isLocationEnabled()Z
    .locals 1

    .prologue
    .line 74
    iget-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->m:Z

    return v0
.end method

.method public isOperatorEnabled()Z
    .locals 1

    .prologue
    .line 62
    iget-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->i:Z

    return v0
.end method

.method public isVisibleWifiEnabled()Z
    .locals 1

    .prologue
    .line 71
    iget-boolean v0, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->l:Z

    return v0
.end method

.method public toJSON()Lorg/json/JSONObject;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    .line 107
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 108
    const-string v1, "si"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->a:J

    invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 109
    const-string v1, "srt"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->b:J

    invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 110
    const-string v1, "shs"

    iget v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->e:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 111
    const-string v1, "wfd"

    iget v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->f:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 112
    const-string v1, "cof"

    iget v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->g:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 114
    const-string v1, "e"

    iget-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->h:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 115
    const-string v1, "sccw"

    iget-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->k:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 116
    const-string v1, "sced"

    iget-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->j:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 117
    const-string v1, "scle"

    iget-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->m:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 118
    const-string v1, "scoe"

    iget-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->i:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 119
    const-string v1, "scvw"

    iget-boolean v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->l:Z

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 121
    const-string v1, "ep"

    iget-object v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->n:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 122
    const-string v1, "mr"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->d:J

    invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 123
    const-string v1, "ri"

    iget-wide v2, p0, Lcom/inmobi/commons/internal/ThinICEConfig;->c:J

    invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 125
    return-object v0
.end method
